package com.dime.basic.api;

import com.dime.basic.api.domain.DimeBasegroup;
import com.dime.basic.api.domain.DimeBaseitem;
import com.dime.basic.api.factory.RemoteItemDescribeFallbackFactory;
import com.dime.basic.api.factory.RemoteItemFallbackFactory;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(contextId = "remoteItemService", value = ServiceNameConstants.DM_BASIC, fallbackFactory = RemoteItemFallbackFactory.class)
public interface RemoteItemService {

    @GetMapping("/baseitem/info/baseitem/{id}")
    public R<DimeBaseitem> getItemById(@PathVariable("id") String id);
}
